]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Use spread syntax to get map keys
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 18 Jul 2017 17:20:42 +0000 (19:20 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 18 Jul 2017 19:52:06 +0000 (21:52 +0200)
It wasn't supported when the code was originally written, now the
fill-in code isn't accepted anymore ...

https://bugzilla.gnome.org/show_bug.cgi?id=785084

js/ui/messageTray.js

index 63e6ca18237c6357efbee15447255ac60e8e8145..80c0dee588518a98440f341bc0ad8b226cad2b95 100644 (file)
@@ -1042,7 +1042,7 @@ const MessageTray = new Lang.Class({
     },
 
     getSources: function() {
-        return [k for (k of this._sources.keys())];
+        return [...this._sources.keys()];
     },
 
     _onSourceEnableChanged: function(policy, source) {